package com.xyd.dao;

import com.xyd.bean.Product;
import com.xyd.bean.ShoppingCar;

import java.util.List;

public interface ShoppingCarMapper {

    //通过id进行查询
    ShoppingCar getShoppingCarById(int id);

    //像购物车中添加商品
    int addSoppingCar(ShoppingCar shoppingCar);

    int updataShoppingCarById(ShoppingCar shoppingCar);

    List<ShoppingCar> getAllShoppingCar();

    List<ShoppingCar> getShoppingCarByUid(int uid);

    int delShoppingById(int id);
    int delShoppingByuid(int uid);
    double getCost(int uid);
}
